<%@ page import="com.magical.entity.User" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/6/4
  Time: 10:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link href="//vjs.zencdn.net/5.19/video-js.min.css" rel="stylesheet">
    <script src="//vjs.zencdn.net/5.19/video.min.js"></script>
</head>
<body>

<div class="main">
<video
        id="my-player"
        class="video-js"
        controls
        preload="auto"
        poster="http://magicalcloud.peihuan.net/upload/video.png"
        data-setup='{}'
        >
    <source id="src" src="http://magicalcloud.peihuan.net/upload/111.mp4"></source>
    <p class="vjs-no-js">
        To view this video please enable JavaScript, and consider upgrading to a
        web browser that
        <a href="http://videojs.com/html5-video-support/" target="_blank">
            supports HTML5 video
        </a>
    </p>
</video>
</div>


<style>
    .main{
        width:200px;
        height: 200px;
        background:green;
        position: absolute;
        left:50%;
        top:50%;
        margin-left:-350px;
        margin-top:-200px;
    }
</style>

<script src="/js/jquery-1-4-2.min.js"></script>
<script src="/js/public-method.js"></script>
<script>
    $(document).ready(function read(e) {
        var path=getQueryString("path");
        var x=window.parent.document.getElementById("src");
        x.src="http://magicalcloud.peihuan.net/upload/"+"<%=((User)session.getAttribute("loginUser")).getId()%>"+path;
    })
</script>
</body>
</html>
